package org.yatr.ttcn.rt.impl;

import java.util.Enumeration;
import java.util.Vector;

import org.etsi.ttcn.tci.TciParameter;
import org.etsi.ttcn.tci.TciParameterList;

public class TciParameterListImpl implements TciParameterList {

	private static final long serialVersionUID = 6072567745218427656L;
	private Vector paramList = new Vector();
	
	public TciParameterListImpl(){
		//do nothing
	}

	public void add(TciParameter parameter) {
		paramList.add(parameter);
	}

	public void clear() {
		paramList.clear();
	}

	public TciParameter get(int index) {
		return (TciParameter) paramList.get(index);
	}

	public Enumeration getParameters() {
		return paramList.elements();
	}

	public boolean isEmpty() {
		return paramList.isEmpty();
	}

	public void setParameters(TciParameter[] parameters) {
		for(int i=0;i<parameters.length;++i) {
			paramList.add(parameters[i]);
		}
	}

	public int size() {
		return paramList.size();
	}

}
